package base.day25;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {

    @Override
    public String call() throws Exception {
        for (int i = 0; i < 100; i++) {
            System.out.println("第三种方法实现多线程"+i);
        }
        String s="执行完毕";
        //表示线程执行完毕之后的结果
        return s;
    }
}
